package zhongbo.java.air.dictionary.model.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import zhongbo.java.air.common.enums.AirportStatus;

import java.util.Date;


/**
 * @author WeiJin
 * @version 1.0
 * @date 2025/3/31 10:06
 */
@Data
@TableName("air_airport")
@ApiModel("机场信息")
public class AirPort {
    @ApiModelProperty("UUID 主键")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "ICAO机场代码（如 ZBAA）", example = "ZBAA")
    private String icaoCode;

    @ApiModelProperty(value = "IATA代码（如 PEK）",example = "PEK")
    private String iataCode;

    @ApiModelProperty(value = "机场全称",example = "成都双流国际机场")
    private String name;

    @ApiModelProperty(value = "纬度（WGS84坐标系，小数点后6位）",example = "35.002")
    private Double latitude;

    @ApiModelProperty(value = "经度（WGS84坐标系，小数点后6位）",example = "102.33")
    private Double longitude;

    @ApiModelProperty(value = "状态（枚举值：OPERATIONAL-运行中, CLOSED-已关闭, RESTRICTED-限制运行）",example = "OPERATIONAL")
    private AirportStatus status;

    @ApiModelProperty(value = "时区（如 Asia/Shanghai）",example = "Asia/Shanghai")
    private String timezone;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date updateTime;

}
